#include "login.h"
#include "mainwindow.h"

#include <QApplication>
#include <QFile>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QFile qss(":/res/main.qss");

    if( qss.open(QFile::ReadOnly))
    {
        qDebug("open success");

        QString style = QLatin1String(qss.readAll());

        a.setStyleSheet(style);

        qss.close();

    }
    else
    {
        qDebug("Open failed");
    }

    Login w;
    w.show();
    return a.exec();
}
